Global Const SMT_ABOUT = "&About 'Boxes On Top'..."
'
' Windows Message Constants
'
Global Const WM_QUERYOPEN = &H13 'restore minimized window message
Global Const WM_SYSCOMMAND = &H112 'system command message
'
' API CALLS
'
'
' FindWindow API call to locate VB Tools
'
Declare Function FindWindow Lib "User" (ByVal lpClassName As Any, ByVal lpCaption As Any) As Integer
'
' SetWindowPos API call used to toggle window stay on top status
'
Declare Function SetWindowPos Lib "User" (ByVal h As Integer, ByVal hb As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal f As Integer) As Integer
'
' System Menu API Declarations
'
'
' Append or Remove menu items
'
Declare Function AppendMenu Lib "USER" (ByVal hMenu As Integer, ByVal wFlags As Integer, ByVal wIDNewItem As Integer, ByVal lpNewItem As Any) As Integer
Declare Function RemoveMenu Lib "USER" (ByVal hMenu As Integer, ByVal nPosition As Integer, ByVal wFlags As Integer) As Integer
'
' Get System Menu handle
'
Declare Function GetSystemMenu Lib "USER" (ByVal hWnd As Integer, ByVal bRevert As Integer) As Integer
'
' Get the state of and modify System Menu items. Used to check and
' uncheck menu items
'
Declare Function GetMenuState Lib "USER" (ByVal hMenu As Integer, ByVal wId As Integer, ByVal wFlags As Integer) As Integer
Declare Function ModifyMenuBystring Lib "USER" Alias "ModifyMenu" (ByVal hMenu As Integer, ByVal nPosition As Integer, ByVal wFlags As Integer, ByVal wIDNewItem As Integer, ByVal lpString As String) As Integer
Sub CheckOnTop (iMenuItem As Integer, sMenuTitle As String, iStatus As Integer)
'
' Place checkmark on or remove checkmark from specified menu item.